/**
 * @ClassName Test
 * @Description TODO
 * @Author leejiliang
 * @DateTime 2021/1/19 15:00
 * @Version 1.0
 */
public class Test {

	public static void main(String[] args) {
		Editor editor = new Editor();
		editor.eventManager.subscribe("open", new EmailNotificationListener());
		editor.eventManager.subscribe("save", new LogListener());

		editor.saveFile();
	}
}
